#include "VStdAfx.h"
#include "VRenderInterface.h"


VRPixelFormatDesc _v_PixelFormatDesc[VRPF_MAX] = 
{
	// Name					RenderFormat	Chanels		BlockBytes		MinSize		IsPacked	IsDepthFormat	IsCompressed	IsFloat
	{ "VRPF_UNKNOWN",		0,				0,			0,				0,			0,			0,				0,				0,	},
	{ "VRPF_R8",			0,				1,			1,				1,			0,			0,				0,				0,	},
	{ "VRPF_RG8",			0,				2,			2,				1,			0,			0,				0,				0,	},
	{ "VRPF_RGB8",			0,				3,			3,				1,			0,			0,				0,				0,	},
	{ "VRPF_RGBA8",			0,				4,			4,				1,			0,			0,				0,				0,	},
	{ "VRPF_R16",			0,				1,			2,				1,			0,			0,				0,				1,	},
	{ "VRPF_RG16",			0,				2,			4,				1,			0,			0,				0,				1,	},
	{ "VRPF_RGB16",			0,				3,			6,				1,			0,			0,				0,				1,	},
	{ "VRPF_RGBA16",		0,				4,			8,				1,			0,			0,				0,				1,	},
	{ "VRPF_R16F",			0,				1,			2,				1,			0,			0,				0,				1,	},
	{ "VRPF_RG16F",			0,				2,			4,				1,			0,			0,				0,				1,	},
	{ "VRPF_RGB16F",		0,				3,			6,				1,			0,			0,				0,				1,	},
	{ "VRPF_RGBA16F",		0,				4,			8,				1,			0,			0,				0,				1,	},
	{ "VRPF_R32F",			0,				1,			4,				1,			0,			0,				0,				1,	},
	{ "VRPF_RG32F",			0,				2,			8,				1,			0,			0,				0,				1,	},
	{ "VRPF_RGB32F",		0,				3,			12,				1,			0,			0,				0,				1,	},
	{ "VRPF_RGBA32F",		0,				4,			16,				1,			0,			0,				0,				1,	},
	
	{ "VRPF_RGB565",		0,				3,			2,				1,			1,			0,				0,				0,	},
	{ "VRPF_RGBA4",			0,				4,			2,				1,			1,			0,				0,				0,	},
	{ "VRPF_RGB5A1",		0,				4,			2,				1,			1,			0,				0,				0,	},
	{ "VRPF_RGB10A2",		0,				4,			4,				1,			1,			0,				0,				0,	},
	
	{ "VRPF_DXT1",			0,				3,			8,				1,			0,			0,				1,				0,	},
	{ "VRPF_DXT3",			0,				4,			16,				1,			0,			0,				1,				0,	},
	{ "VRPF_DXT5",			0,				5,			16,				1,			0,			0,				1,				0,	},
	{ "VRPF_ATI1",			0,				4,			8,				1,			0,			0,				1,				0,	},
	{ "VRPF_ATI2",			0,				4,			16,				1,			0,			0,				1,				0,	},
	{ "VRPF_ETC1",			0,				3,			8,				1,			0,			0,				1,				0,	},
#if 0	
	{ "VRPF_ETC2",			0,				4,			8,				1,			0,			0,				1,				0,	},
	{ "VRPF_ETC5",			0,				4,			16,				1,			0,			0,				1,				0,	},
	{ "VRPF_EAC1",			0,				0,			8,				1,			0,			0,				1,				0,	},
	{ "VRPF_EAC2",			0,				0,			16,				1,			0,			0,				1,				0,	},
	{ "VRPF_ATC1",			0,				0,			8,				1,			0,			0,				1,				0,	},
	{ "VRPF_ATC3",			0,				0,			16,				1,			0,			0,				1,				0,	},
	{ "VRPF_ATC5",			0,				0,			16,				1,			0,			0,				1,				0,	},
	{ "VRPF_PVR4",			0,				0,			8,				2,			0,			0,				1,				0,	},
#endif 	
	// depth
	{ "VRPF_D16",			0,				1,			0,				1,			0,			1,				0,				0,	},
	{ "VRPF_D24",			0,				1,			0,				1,			0,			1,				0,				0,	},
	{ "VRPF_D24S8",			0,				1,			0,				1,			0,			1,				0,				0,	},
	{ "VRPF_D32F",			0,				1,			0,				1,			0,			1,				0,				0,	},
	{ "VRPF_D32FS8",		0,				1,			0,				1,			0,			1,				0,				0,	},
	
	// render 
	{ "VRPF_DS_AUTO",		0,				1,			0,				1,			0,			1,				0,				0,	},
	{ "VRPF_DEPTHSHADOW",	0,				1,			0,				1,			0,			1,				0,				0,	},
	{ "VRPF_FOURCC_NULL",	0,				0,			0,				1,			0,			0,				0,				0,	}
};


VRenderInterface::VRenderInterface(void)
{
}


VRenderInterface::~VRenderInterface(void)
{
}
